<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta http-equiv="cache-control" content="no-siteapp">

    <title>在线解析视频网站</title>
    <script type='text/javascript' src='js/sjgc777.js'></script>
    <link rel='stylesheet' id='main-css'  href='css/style.css' type='text/css' media='all' />
    <link rel='stylesheet' id='main-css'  href='css/index.css' type='text/css' media='all' />
    <script type='text/javascript' src='js/jquery.min.js?ver=0.5'></script>
    <!--[if lt IE 9]><script src="js/html5.js"></script><![endif]-->
</head>
<body class="home blog">

<header class="header">
    <div class="container">
        <h1 class="logo"><a href="javascript:;" title="代码库影院,电视直播网站,零八影院快播,高清云影视,云点播,免费看视频,湖南卫视直播,80电影网,最新电影天堂免费在线观看"><img src="images/logo.png"><span>代码库影院-免VIP抢先观看最新好看的电影和电视剧</span></a></h1>		<div class="sitenav">
        <ul><li id="menu-item-18" class="menu-item"><a href="javascript:;">首页</a>
        </li>
            <li id="menu-item-27" class="menu-item"><a href="javascript:;">电影</a></li>
            <li id="menu-item-31" class="menu-item"><a href="javascript:;">追热剧</a></li>
            <li id="menu-item-20" class="menu-item"><a href="javascript:;">综艺</a></li>
            <li id="menu-item-20" class="menu-item"><a href="javascript:;">动漫</a></li>
            <li id="menu-item-20" class="menu-item"><a href="javascript:;">搞笑</a></li>
            <li id="menu-item-20" class="menu-item"><a href="javascript:;">电视直播</a></li>
            <li id="menu-item-20" class="menu-item"><a href="javascript:;">购物</a></li>
            <li id="menu-item-20" class="menu-item"><a href="javascript:;">客户端</a></li>
        </ul>
    </div>
        <span class="sitenav-on"><i class="icon-list"></i></span>
        <span class="sitenav-mask"></span>
        <div class="accounts">
            <a class="account-weixin" href="javascript:;"><i class="fa"></i>
                <div class="account-popover"><div class="account-popover-content"><img src="images/qrcode.jpg"></div></div>
            </a>
        </div>
        <span class="searchstart-on"><i class="icon-search"></i></span>
        <span class="searchstart-off"><i class="icon-search"></i></span>
        <form method="post" class="searchform" action="./seacher.php" >
            <button tabindex="3" class="sbtn" type="submit"><i class="fa"></i></button><input tabindex="2" class="sinput" name="wd" type="text" placeholder="输入关键字" value="">
        </form>
    </div>

</header><div id="homeso">
    <form method="post" id="soform" style="text-align: center;float: none" action="./seacher.php">
        <img id="imgsrc" src="images/sologo.png"><br><br>
        <input tabindex="2" class="homesoin" id="sos" name="wd" type="text" placeholder="输入你要观看的视频" value="">
        <button id="button" tabindex="3" class="homesobtn" type="submit"><i class="fa">观看</i></button>
    </form>


</div>
<section class="container">
    <div class="single-strong">最新热门电影推荐<span class="chak"><a href="javascript:;">查看更多</a></span></div>
    <div class="b-listtab-main">
        <div class="s-tab-main">
            <ul id="mymovielist" class="list g-clear">

            </ul>
        </div>
    </div>

</section>

<div class="foornav">
    <a href="javascript:;"><span><img src="images/index.png"/>首页</span></a>
    <a href="javascript:;"><span><img src="images/video.png"/>电影</span></a>
    <a href="javascript:;"><span><img src="images/dianshi.png"/>电视剧</span></a>
    <a href="javascript:;"><span><img src="images/dianshiju.png"/>综艺</span></a>
    <a href="javascript:;"><span><img src="images/gouwu.png"/>购物</span></a></div>
<footer class="footer">
    <div class="branding branding-black">
        <div class="container" style="text-align: center;">
            <h2>代码库影院 - 海量高清VIP视频免费观看</h2>
            <a target="blank" class="gobtn" href="javascript:;">代码库影院</a>
            <a target="blank" class="gobtn" href="javascript:;">加入Q群</a>			</div>
    </div>


    <p style="padding: 0 4px;">本站提供的最新电影和电视剧资源均系收集于各大视频网站,本站只提供web页面服务,并不提供影片资源存储,也不参与录制、上传</br>若本站收录的节目无意侵犯了贵司版权，请给网页底部邮箱地址来信,我们会及时处理和回复,谢谢。<br/>管理员邮箱：3176391822@qq.com<br/>&copy; 2017 <a href="javascript:;">代码库影院</a>&nbsp; <a href="javascript:;">国ICP备18888888号</a>&nbsp;
        本站主题由 <a href="javascript:;" target="_blank"><font color="red">【代码库影视】</font></a> 提供 &nbsp;  </footer>
<div class="rewards-popover-mask" etap="rewards-close"></div>
<div class="rewards-popover">
    <h3>觉得本站还不错就打赏一下吧！</h3>
    <div class="rewards-popover-item">
        <h4>支付宝扫一扫打赏</h4>
        <img src="images/zfb.png">		</div>
    <div class="rewards-popover-item">
        <h4>微信扫一扫打赏</h4>
        <img src="images/wx.png">		</div>
    <span class="rewards-popover-close" etap="rewards-close"></span>
</div>

<script type='text/javascript' src='js/main.js'></script>
<script type='text/javascript'>
    function addmovie(movielist){
        for (var m in movielist){
            var item = movielist[m]
            console.log(movielist[m])
            document.getElementById("mymovielist").innerHTML +=
                "<li class='item'>\
                    <a class='js-tongjic' href='javascript:;' title='"+item.name+"' target='_blank'>\
                        <div class='cover g-playicon'>\
                            <img src='"+item.cover+"' alt='"+item.name+"' />\
                            <span class='pay'>推荐</span><span class='hint'>"+item.name+"</span>\
                        </div>\
                        <div class='detail'>\
                            <p class='title g-clear'>\
                                <span class='s1'>"+item.name+"</span>\
                                <span class='s2'>"+item.doubanScore+"</span>\
                            </p>\
                            <p class='star'>主演："+item.actors+"</p>\
                        </div>\
                    </a>\
                </li>"


        }

   }

    function init(){
        $.ajax({
            url: '../movies/list',
            method:'GET',
            dataType: 'json',
            data: {

            },
            success: function(res){
                console.log(res)
                addmovie(res.page.list)
            },
            error: function(){

            }
        })
    }

    init()

</script>
</body>
</html>